Icon of SumoEyes block

NXTSumoEyes Block

This block interfaces with NXTSumoEyes from mindsensors.com
NXTSumoEyes is a Dual Range Dual Infra Red Obstacle Detector

Overview of Sensor Operation

NXTSumoEyes Sensor is able to detect obstacle in zones and ranges as shown in picture below.
The Short range is about 6 inches (15 cm), and Long Range is about 12 inches (about 30 cm).
This distance changes based on reflectivity of the obstacle, e.g. a white paper obstacle is detectable at a farther distance than a dark object.

View

This sensor and block can be used in several ways -
  1. Look for obstacle in certain zone, and block will return true if obstacle is found in that zone. (By this method, you can use the 'Sensor on a Switch block').
  2. Look for obstacle in any of these zones and in your program you can compute where it is.
  3. Look for obstacle in Long Range, if you find one, switch to Short range and continue looking, if you do not find obstacle in Short range, would indicate that obstacle is in Long Range area.

Display Settings

Block
  1. The number shown on the block (3 in this case) is the port to which this sensor is connected.  If you are connecting to a different port, change the port number in the panel.
  2. This label indicates the current range for the sensor. (Long or Short).
  3. The block’s data hub will open automatically when the block is placed in the work area. You should wire the output to another block's data hub.

Configuring the SumoEyes Block

Panel
  1. The Port number to which this sensor is connected.
  2. The range of the sensor.  In Long Range mode, the sensor will detect obstacles upto 12 inches. Where as in short range mode, the sensor will detect obstacles closer than 6 inches.
  3. If an obstacle is found in this zone, the sensor will return true.

SumoEyes Block's Data Hub Plugs

Hub

  1. Look in this zone - This plug let's you select the zone in which sensor should look for obstacle. (This will return True or False in plug 2). Use numeric values as follows:
  2. Long Range Enabled? - This plug lets you select the range of the sensor (TRUE for Long Range and FALSE for Short Range).
  3. Obstacle found? - True or False value of the obstacle found in the specified zone. Zone is specified on the panel (bullet 3 shown in the panel)
  4. Which zone is Obstacle in? - If the obstacle is found, the zone is returned as follows:
  5. Is it Front? - This plug returns true if obstacle is found in front.
  6. Is it Right? - This plug returns true if obstacle is found on Right side.
  7. Is it Left? - This plug returns true if obstacle is found on Left side.
  8. Raw Value - Value returned from the sensor, the values are returned as follows: